<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>

    <script>

    for(var n=1;n<=100;n++){
        if(n==1){
            continue;
        }else{
            var flag=true;
            for(var j=2;j<n;j++){
                if(n%j==0){
                    flag = false;

                }
            }
        }
        if(flag){

           document.write("100以内的素数有："+n+'<br>');
        }
    }
</script>





</body>
</html>